package com.hy.mydesktop.client.rpcModel;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.BaseTreeModel;


public class RPCTreeModel extends BaseTreeModel {

	/**
	 * <ul>
	 * <li>开发作者：冬超</li>
	 * <li>设计日期：2010-9-28；时间：下午02:00:05</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long serialVersionUID = 1L;

	

	 protected RPCTreeModel() {

	  }

	  public RPCTreeModel(String name, String path) {
	    setName(name);
	    setPath(path);
	  }

	  public void setName(String name) {
	    set("name", name);
	  }

	  public void setPath(String path) {
	    set("path", path);
	  }

	  public String getPath() {
	    return get("path");
	  }

	  public String getName() {
	    return get("name");
	  }

	  @Override
	  public boolean equals(Object obj) {
	    if (obj != null && obj instanceof RPCTreeModel) {
	    	RPCTreeModel mobj = (RPCTreeModel) obj;
	      return getName().equals(mobj.getName()) && getPath().equals(mobj.getPath());
	    }
	    return super.equals(obj);
	  }
	
}
